/* gtrans - Translation helped by Google
 * Copyright (C) 2011 Nagy Attila
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef DEFS_H_INCLUDED
#define DEFS_H_INCLUDED

#include <map>
#include <string>

#define CONF_HOME           "com.google.code.gtrans"
#define CONF_ENABLED        "enabled"
#define CONF_LANG_SOURCE    "source-lang"
#define CONF_LANG_TARGET    "target-lang"
#define CONF_LISTEN_SOURCE  "listen-source"
#define CONF_LISTEN_TARGET  "listen-target"
#define CONF_GOOGLE_API_KEY "api-key"

#define AUTO_DETECT_SOURCE_LANG "auto"

#define LOG_CATEGORY_HTTP400 "[HTTP400]"
#define LOG_CATEGORY_HTTP500 "[HTTP500]"
#define LOG_CATEGORY_NETWORK "[NETWORK]"
#define LOG_CATEGORY_NOTIFY  "[NOTIFY]"

#define ERROR_INFO_LENGTH 512

typedef std::map<std::string, std::string> languages_map;
typedef std::map<std::string, std::string>::iterator languages_iterator;

#endif // DEFS_H_INCLUDED

